package learn.emp01.ex07;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = Integer.parseInt(scanner.nextLine().trim());
        double y = Double.parseDouble(scanner.nextLine().trim());

        double sum = x + y;
        double sqrtSum = Math.sqrt(sum);

        String sqrtStr = String.valueOf(sqrtSum);
        String shortStr = sqrtStr.substring(0, Math.min(6, sqrtStr.length()));

        System.out.println(sum);
        System.out.println(sqrtSum);
        System.out.println(shortStr);
    }
}
